const localUserInfo = JSON.parse(uni.getStorageSync('userInfo') || null) || {}


const state = {
    userInfo: localUserInfo
};

const mutations = {
    SET_USER_INFO: (state, payload) => {
        state.userInfo = payload;
        uni.setStorageSync('userInfo', JSON.stringify(payload));
    }
};

const actions = {

};


export default {
    namespaced: true,
    state,
    mutations,
    actions
}